package com.htht.job.core.api;

import com.htht.job.executor.model.shiro.Resource;
import com.htht.job.executor.model.shiro.Role;
import com.htht.job.executor.model.shiro.User;
import com.htht.job.executor.model.tree.ZtreeView;

import java.util.List;
import java.util.Map;

/**
 * Created by zzj on 2018/1/24.
 */
public interface DubboShiroService {


    public String findByUserName(String username);
    public void saveOrUpdateUser(User user);
    public void deleteUser(String id);
    public void grantUser(String id, String[] roleIds);
    public void saveOrUpdateRole(Role role);
    public void deleteRole(String id);
    public void grantResoure(String id, String[] resourceIds);
    public List<ZtreeView> tree(String roleId);
    public void saveOrUpdateResource(Resource resource);
    public void deleteResource(String id);
    public String userList(int start, int length, String searchText);
    public String roleList(int start, int length, String searchText);
    public String resourceList(int start, int length, String searchText);
    public String findAllResouce();
    public List<ZtreeView> allTree();
    public String findById(String id);
    public String findAllRole();
}
